package com.tuling.controller;


import com.tuling.tulingmall.common.api.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@Controller
@Slf4j
public class TestController {


    @RequestMapping(value = "/test",method = RequestMethod.GET)
    @ResponseBody
    public CommonResult test(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        return CommonResult.success("test");
    }


}
